package com.sharding.jdbc;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.transaction.annotation.EnableTransactionManagement;

/**
 * 启动类
 * exclude = {DataSourceAutoConfiguration.class} 禁用数据源自动配置
 * 使用注解开启事务管理器 @EnableTransactionManagement
 * @Author zhu_jinsheng[zhu_js@suixingpay.com]
 * @Date 2019/12/3 21:46
 * @Version 1.0
 */
@EnableTransactionManagement
@SpringBootApplication(exclude = {DataSourceAutoConfiguration.class})
public class ShardingJdbcApplication {
    public static void main(String[] args) {
        SpringApplication.run(ShardingJdbcApplication.class, args);
    }
}
